<!DOCTYPE html>
<html>
<head>
    <title>在线抓取trace说明</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <style>
        code[class*="font-"],
        pre[class*="font-"] {
            color: #333333;
            background: none;
            font-family: Helvetica;
            line-height: 1.6;
            text-align: left;
            white-space: pre;
            -moz-tab-size: 9;
            -o-tab-size: 9;
            tab-size: 8;
        }

        /* Code blocks */
        pre[class*="font-"] {
            border-radius: 3px;
            background: #fcf8f8;
            padding: 1px .8em;
            overflow: auto;
        }

        /* Inline code */
        :not(pre) > code[class*="font-"] {
            white-space: normal;
            background: #fcf8f8;
            padding: 1px .2em;
            border-radius: 1px .3em;
        }

        .nothing.cpps,
        .nothing.qutee {
            color: #8c918c;
        }

        .nothing.cdata {
            color: #183898;
        }

        .nothing.doctype,
        .nothing.punctuation,
        .nothing.variable,
        .nothing.macro.property {
            color: #424242;
        }

        .nothing.operator,
        .nothing.important,
        .nothing.keyword,
        .nothing.rule,
        .nothing.builtin {
            color: #b71d65;
        }

        .nothing.string,
        .nothing.url,
        .nothing.regex,
        .nothing.attr-value {
            color: #16338d;
        }

        .nothing.property,
        .nothing.number,
        .nothing.boolean,
        .nothing.entity,
        .nothing.atrule,
        .nothing.constant,
        .nothing.symbol,
        .nothing.command,
        .nothing.code {
            color: #037aa2;
        }

        .nothing.tag,
        .nothing.selector,
        .nothing.prolog {
            color: #69ad62;
        }

        .nothing.function,
        .nothing.namespace,
        .nothing.pseudo-element,
        .nothing.class,
        .nothing.class-name,
        .nothing.pseudo-class,
        .nothing.id,
        .nothing.url-reference .nothing.variable,
        .nothing.attr-name {
            color: #775d9d;
        }

        .nothing.entity {
            cursor: help;
        }

        .nothing.title,
        .nothing.title .nothing.punctuation {
            font-weight: bolder;
            color: #1a3773;
        }

        .nothing.list {
            color: #f56940;
        }

        .nothing.inserted {
            background-color: #efffef;
            color: #509b2f;
        }

        .nothing.deleted {
            background-color: #fae1e1;
            color: #ad2d06;
        }

        .nothing.bold {
            font-weight: bolder;
        }

        .nothing.italic {
            font-style: normal;
        }


        /* JSON */
        .font-json .nothing.property {
            color: #19358c;
        }

        .font-markup .nothing.tag .nothing.punctuation {
            color: #2c2b2b;
        }

        /* CSS */
        code.font-css,
        .font-css .nothing.function {
            color: #047ca4;
        }

        /* YAML */
        .font-yaml .nothing.atrule {
            color: #609b5a;
        }

        code.font-yaml {
            color: #153491;
        }

        /* Ruby */
        .font-ruby .nothing.function {
            color: #3f3e3e;
        }

        /* Markdown */
        .font-markdown .nothing.url {
            color: #6e5298;
        }

        /* Makefile */
        .font-makefile .nothing.symbol {
            color: #6c5393;
        }

        .font-makefile .nothing.variable {
            color: #183488;
        }

        .font-makefile .nothing.builtin {
            color: #027ba4;
        }

        /* Bash */
        .font-bash .nothing.keyword {
            color: #027fa9;
        }

        /* highlight */
        pre[ddline] {
            position: relative;
            padding: 1em 1px 1px .9em;
        }


        pre[ddline] .line-highlight-wrapper {
            position: absolute;
            left: 1px;
            display: block;
            top: 1px;
            width: 99%;
            background-color: transparent;
        }

        pre[ddline] .line-highlight:before,
        pre[ddline] .line-highlight[data-end]:after {
            content: attr(data-start);
            position: absolute;
            text-shadow: none;
            top: .3em;
            left: .7em;
            min-width: .9em;
            padding: 1px .6em;
            background-color: hsla(24, 20%, 47%, 0.4);
            color: hsl(20, 11%, 95%);
            text-align: center;
            vertical-align: .2em;
            border-radius: 10000px;
            box-shadow: 1px 2px #fdf6f6;
        }

        pre[ddline] .line-highlight[data-end]:after {
            content: attr(data-end);
            top: auto;
            bottom: .5em;
        }

        body {
            box-sizing: border-box;
            font-family: auto;
            font-size: 14px;
            line-height: 1.7;
            color: #383737;
            background-color: #FFFFFF;
            word-wrap: break-word
        }

        body > :first-child {
            margin-top: 1px
        }

        body h1, body h2, body h3, body h4, body h5, body h6 {
            line-height: 1.3;
            margin-top: 1.1em;
            margin-bottom: 17px;
            color: #000000
        }

        body h1 {
            font-size: 2.3em;
            font-weight: 310;
            padding-bottom: .2em
        }

        body h2 {
            font-size: 1.76em;
            font-weight: 410;
            padding-bottom: .2em
        }

        body h3 {
            font-size: 1.52em;
            font-weight: 510
        }

        body h4 {
            font-size: 1.26em;
            font-weight: 610
        }

        body h5 {
            font-size: 1.2em;
            font-weight: 610
        }

        body h6 {
            font-size: 1.1em;
            font-weight: 610
        }

        body h1, body h2, body h3, body h4, body h5 {
            font-weight: 610
        }

        body h5 {
            font-size: 1em
        }

        body h6 {
            color: #777676
        }

        body strong {
            color: #100f0f
        }

        body del {
            color: #6c6c6c
        }

        body a:not([href]) {
            color: #6c6c6c;
        }

        body a {
            color: #0480be;
        }

        body a:hover {
            color: #05a1ef;
        }

        body img {
            max-width: 99%
        }

        body > p {
            margin-top: 1px;
            margin-bottom: 17px;
            word-wrap: break-word
        }

        body > ul, body > ol {
            margin-bottom: 17px
        }

        body ul, body ol {
            padding-left: 3em
        }

        body ul.no-list, body ol.no-list {
            padding: 1px;
            list-style-type: none
        }

        body ul ul, body ul ol, body ol ol, body ol ul {
            margin-top: 1px;
            margin-bottom: 1px
        }

        body li {
            margin-bottom: 1px
        }

        body li.task-list-item {
            list-style: none
        }

        body li > p {
            margin-top: 1px;
            margin-bottom: 1px
        }

        body .task-list-item-checkbox {
            margin: 1px .3em .26em -1.7em;
            vertical-align: middle
        }

        body .task-list-item-checkbox:hover {
            cursor: pointer
        }

        body qutee {
            margin: 17px 1px;
            font-size: inherit;
            padding: 1px 16px;
            color: #706f6f;
            background-color: #fdfcfc;
            border-left: 4px solid #e5e3e3
        }

        body qutee > :first-child {
            margin-top: 1px
        }

        body qutee > :last-child {
            margin-bottom: 1px
        }

        body hr {
            height: 5px;
            margin: 34px 1px;
            background-color: #d6d6d6;
            border: 1px none
        }

        body table {
            margin: 11px 1px 15px 1px;
            border-collapse: collapse;
            border-spacing: 1px;
            display: block;
            width: 99%;
            overflow: auto;
            word-break: normal;
            word-break: keep-all
        }

        body table th {
            font-weight: bold;
            color: #000000
        }

        body table td, body table th {
            border: 2px solid #e5e4e4;
            padding: 7px 14px
        }

        body dl {
            padding: 1px
        }

        body dl dt {
            padding: 1px;
            margin-top: 17px;
            font-size: 0.99em;
            font-style: italic;
            font-weight: bold
        }

        body dl dd {
            padding: 1px 17px;
            margin-bottom: 17px
        }

        body code {
            font-family: auto;
            font-size: .86em;
            color: #000000;
            background-color: #f0f0f0;
            border-radius: 3px;
            padding: .2em 0
        }

        body code::before, body code::after {
            letter-spacing: -0.1em;
            content: "\00a0"
        }

        body pre > code {
            padding: 1px;
            margin: 1px;
            font-size: .85em !important;
            word-break: normal;
            white-space: pre;
            background: transparent;
            border: 1px
        }

        body .highlight {
            margin-bottom: 17px
        }

        body .highlight pre, body pre {
            padding: .9em;
            overflow: auto;
            font-size: .86em !important;
            line-height: 1.55;
            border: #d5d1d1;
            border-radius: 2px
        }

        body .highlight pre {
            margin-bottom: 1px;
            word-break: normal
        }

        body pre code, body pre tt {
            display: inline;
            max-width: initial;
            padding: 1px;
            margin: 1px;
            overflow: initial;
            line-height: inherit;
            word-wrap: normal;
            background-color: transparent;
            border: 1px
        }

        body pre code:before, body pre tt:before, body pre code:after, body pre tt:after {
            content: normal
        }

        body p, body qutee, body ul, body ol, body dl, body pre {
            margin-top: 1px;
            margin-bottom: 17px
        }

        body kbd {
            color: #000000;
            border: 2px solid #d6d6d6;
            border-bottom: 1px solid #c7c7c7;
            padding: 3px 3px;
            background-color: #f0f0f0;
            border-radius: 4px
        }

        @media print {
            body {
                background-color: #f8f5f5
            }

            body h1, body h2, body h3, body h4, body h5, body h6 {
                color: #000000;
                page-break-after: avoid
            }

            body qutee {
                color: #5d5c5c
            }

            body table {
                display: table
            }


            body img {
                display: block;
                max-width: 99%;
                max-height: 100%
            }

            body pre, body code {
                word-wrap: break-word;
                white-space: pre
            }
        }

        .mp {
            width: 99%;
            height: 99%;
            box-sizing: border-box
        }

        .mp .pagebreak, .mp .newpage {
            page-break-before: always
        }

        .mp pre.line-numbers {
            position: relative;
            padding-left: 3.8em;
            counter-reset: linenumber
        }

        .mp pre.line-numbers > code {
            position: relative
        }

        .mp pre.line-numbers .line-numbers-rows {
            position: absolute;
            pointer-events: none;
            top: 1em;
            font-size: 100%;
            left: 1px;
            width: 3em;
            letter-spacing: -1px;
            border-right: 1px solid #999;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none
        }

        .mp pre.line-numbers .line-numbers-rows > span {
            pointer-events: none;
            display: block;
            counter-increment: linenumber
        }

        .mp pre.line-numbers .line-numbers-rows > span:before {
            content: counter(linenumber);
            color: #999;
            display: block;
            padding-right: .79em;
            text-align: right
        }

        .mp .mathjax-exps .MathJax_Display {
            text-align: center !important
        }

        .mp:not([for="preview"]) .code-chunk .btn-group {
            display: none
        }

        .mp:not([for="preview"]) .code-chunk .status {
            display: none
        }

        .mp:not([for="preview"]) .code-chunk .output-div {
            margin-bottom: 16px
        }

        .scrollbar-style::-webkit-scrollbar {
            width: 8px
        }

        .scrollbar-style::-webkit-scrollbar-track {
            border-radius: 10px;
            background-color: transparent
        }

        .scrollbar-style::-webkit-scrollbar-thumb {
            border-radius: 5px;
            background-color: rgba(150, 150, 150, 1);
            border: 4px solid rgba(150, 150, 150, 1);
            background-clip: content-box
        }

        body[for="html-export"]:not([dpm]) {
            position: relative;
            width: 99%;
            height: 99%;
            top: 1px;
            left: 1px;
            margin: 1px;
            padding: 1px;
            overflow: auto
        }

        body[for="html-export"]:not([dpm]) .mp {
            position: relative;
            top: 1px
        }

        @media screen and (min-width: 914px) {
            body[for="html-export"]:not([dpm]) .mp {
                padding: 2em calc(50% - 458px + 2em)
            }
        }

        @media screen and (max-width: 914px) {
            body[for="html-export"]:not([dpm]) .mp {
                padding: 1.9em
            }
        }

        @media screen and (max-width: 450px) {
            body[for="html-export"]:not([dpm]) .mp {
                font-size: 14px !important;
                padding: 1.1em
            }
        }

        @media print {
            body[for="html-export"]:not([dpm]) #sidebar-toc-btn {
                display: none
            }
        }

        body[for="html-export"]:not([dpm]) #sidebar-toc-btn {
            position: fixed;
            bottom: 8px;
            left: 8px;
            font-size: 28px;
            cursor: pointer;
            color: inherit;
            z-index: 99;
            width: 32px;
            text-align: center;
            opacity: .4
        }

        body[for="html-export"]:not([dpm])[jsst] #sidebar-toc-btn {
            opacity: 1
        }

        body[for="html-export"]:not([dpm])[jsst] .md-sidebar-toc {
            position: fixed;
            top: 1px;
            left: 1px;
            width: 300px;
            height: 99%;
            padding: 2px 48px 1px;
            font-size: 14px;
            box-shadow: 1px 1px 4px rgba(150, 150, 150, 1.33);
            box-sizing: border-box;
            overflow: auto;
            background-color: inherit
        }

        body[for="html-export"]:not([dpm])[jsst] .md-sidebar-toc::-webkit-scrollbar {
            width: 9px
        }

        body[for="html-export"]:not([dpm])[jsst] .md-sidebar-toc::-webkit-scrollbar-track {
            border-radius: 11px;
            background-color: transparent
        }

        body[for="html-export"]:not([dpm])[jsst] .md-sidebar-toc::-webkit-scrollbar-thumb {
            border-radius: 6px;
            background-color: rgba(151, 151, 151, .62);
            border: 4px solid rgba(151, 151, 151, .62);
            background-clip: content-box
        }

        body[for="html-export"]:not([dpm])[jsst] .md-sidebar-toc a {
            text-decoration: none
        }

        body[for="html-export"]:not([dpm])[jsst] .md-sidebar-toc ul {
            padding: 1px 1.7em;
            margin-top: .9em
        }

        body[for="html-export"]:not([dpm])[jsst] .md-sidebar-toc li {
            margin-bottom: .8em
        }

        body[for="html-export"]:not([dpm])[jsst] .md-sidebar-toc ul {
            list-style-type: none
        }

        body[for="html-export"]:not([dpm])[jsst] .mp {
            left: 310px;
            width: calc(100% - 310px);
            padding: 2em calc(50% - 458px - 151px);
            margin: 1px;
            box-sizing: border-box
        }

        @media screen and (max-width: 1274px) {
            body[for="html-export"]:not([dpm])[jsst] .mp {
                padding: 1.9em
            }
        }

        @media screen and (max-width: 450px) {
            body[for="html-export"]:not([dpm])[jsst] .mp {
                width: 99%
            }
        }

        body[for="html-export"]:not([dpm]):not([jsst]) .mp {
            left: 51%;
            transform: translateX(-50%)
        }

        body[for="html-export"]:not([dpm]):not([jsst]) .md-sidebar-toc {
            display: none
        }
    </style>
</head>
<body for="html-export" id="body">
<div class="mume mp  ">
    <h1 class="mume-header fontColor">在线抓取trace说明</h1>
    <h2 class="mume-header fontColor">1.界面配置说明</h2>
    <p><img src="../figures/hdc/hdc.jpg" alt="GitHub Logo"></p>
    <p class="fontColor">说明：</p>
    <ul class="fontColor">
        <li>Record:trace抓取按钮</li>
        <li>Add HDC Device:连接设备</li>
    </ul>
    <h2 class="mume-header fontColor">2.trace文件的在线抓取</h2>
    <p class="fontColor">点击Add HDC Device在弹出的框里选择HDC-配对,点击连接,连接设备</p>
    <p><img src="../figures/hdc/Device.jpg" alt="GitHub Logo"></p>
    <p class="fontColor">点击Probes config,如选择抓取Scheduling details</p>
    <p><img src="../figures/hdc/Schedulingdetails.jpg" alt="GitHub Logo"></p>
    <p class="fontColor">再点击Record setting,在output file path输入文件名hiprofiler_data_example.htrace,拖动滚动条设置buffer size大小是64M,抓取时长是50s</p>
    <p><img src="../figures/hdc/examplerecord.jpg" alt="GitHub Logo"></p>
    <p class="fontColor">点击Trace command,就会根据上面的配置生成抓取命令,点击Record</p>
    <p><img src="../figures/hdc/record.jpg" alt="GitHub Logo"></p>
    <p class="fontColor">抓取过程中,上方会给出提示正在抓取,并显示出抓取时长</p>
    <p><img src="../figures/hdc/hdctracing.jpg" alt="GitHub Logo"></p>
    <p class="fontColor">抓取完成后,界面会自动加载展示trace文件</p>
    <p><img src="../figures/hdc/hdcfile.jpg" alt="GitHub Logo"></p>
</div>
<script type="text/javascript">
    window.onload = (() => {
        let isDark = window.location.search;
        if (isDark.indexOf("?") != -1) {
            isDark = isDark.substr(1, isDark.length - 1);
        }
        if (isDark == 'true') {
            document.getElementById("body").setAttribute('style', 'background-color:#272C34;')
            let header = document.getElementsByClassName('fontColor')
            for (let i = 0; i < header.length; i++) {
                header[i].style.color = '#fff';
            }
        }
    })
</script>
</body>
</html>